<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'edittask.jsp' starting page</title>
    
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">

  </head>
  
  <body class="body">
    <%@ include file="include/top.jsp" %>
    	<div class="container" >
		 	 <div class="row">
				<div class="span3">
				<%@ include file="include/left.jsp" %>
				</div>
				<div class="span9">
		  	<form class="form-horizontal" action ="edittask.jspx" method="post">
				<fieldset>
					<legend>修改该任务</legend>
					<div class="control-group">
						<label class="control-label" >目标名称</label>
						<div class="controls">
							<input type="hidden" name="id" value="${task.id }">
							<input type="text" class="span5" name="name" value="${task.name }" >
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">截止时间</label>
						<div class="controls">
							<input type="text" class="span5" name="endtime" value="${task.endtime }">
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" >任务描述</label>
							<div class="controls">
								<textarea class="span5" rows="8" name="desc">${task.desc}</textarea>
							</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="multiSelect" >状态</label>
						<div class="controls">
							<select id="multiSelect" name="state">
								<option selected="selected">${task.state}</option>
								<option value="新任务">新任务</option>
								<option value="进行中">进行中</option>
								<option value="已完成">已完成</option>
							</select>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="multiSelect">级别</label>
						<div class="controls">
							<select id="multiSelect" name="level">
								<option selected="selected">${task.level}</option>
								<option value="重要紧急">重要紧急</option>
								<option value="重要不紧急">重要不紧急</option>
								<option value="紧急不重要">紧急不重要</option>
								<option value="不紧急不重要">不紧急不重要</option>
							</select>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="multiSelect">负责人</label>
						<div class="controls">
							<select id="multiSelect" name="employeename">
								<option selected="selected">${employee.username}</option>
								<option>tom</option>
								<option>rose</option>
								<option>张三</option>
								<option>李四</option>
							</select>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="multiSelect">进度</label>
						<div class="controls">
							<input type="text" name="rate" value=${task.rate } >
						</div>
					</div>
          
					<div class="form-actions">
						<button type="submit" class="btn btn-primary">保存</button>
						<button class="btn" onclick="location.href='edittask.jspx&id=${task.id}'">返回</button>
					</div>
				</fieldset>
			</form>          
        </div>
			</div>
		</div>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		
  </body>
</html>
